import {NgModule} from '@angular/core';
import {RouterModule, Routes} from "@angular/router";
import {HeroFormComponent} from "./hero/form/hero-form.component"
import  {HeroDashComponent} from "./hero/dashboard/hero-dash.component";

import {EmployeesComponent} from "./employee/employee.component"
const routes:Routes = [
  {path:'heroes',component : HeroFormComponent},
  {path:'hero-dash',component: HeroDashComponent},
   {path:'employee',component: EmployeesComponent}];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRouteModule {
}
